#include <iostream>
#include <string>

class PaymentProcessor {
public:
    void processPayment(const std::string& paymentType, double amount) {
        if (paymentType == "CreditCard") {
            std::cout << "Processing credit card payment of $" << amount << std::endl;
        }
        // 随着新支付方式的增加，这里需要不断修改和添加新的条件判断
    }
};

int main() {
    PaymentProcessor processor;
    processor.processPayment("CreditCard", 100.0);
    return 0;
}